from info import create_app, db,models
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager

app = create_app("developer")
# 创建Manager对象。关联app
manager = Manager(app)
# 关联app和db
Migrate(app,db)
# 添加操作命令
manager.add_command("db",MigrateCommand)


# Flask应用程序实例的run方法，启动web服务器
if __name__ == "__main__":
    manager.run()